package pizza3;

/**
 * @Auther: xiaofei
 * @Date: 2021/6/8 - 06 - 08 - 15:25
 * @Description: pizza3
 * @version: 1.0
 */
public class BurdenPizza extends Pizza {
    //属性
    private double weight;

    //方法

    public double getweight() {
        return weight;
    }

    public void setweight(double weight) {
        this.weight = weight;
    }

    @Override
    public String showPizza() {
        return super.showPizza()+"添加的培根克数："+weight;
    }
    //构造器

    public BurdenPizza() {
    }

    public BurdenPizza(String name, int size, double price, double weight) {
        super(name, size, price);
        this.weight = weight;
    }
}
